#@layout()
<script>
$("#task-count-setting").validate({
    rules:{},
    messages:{},
    onkeyup:false,
    focusCleanup:true,
    success:"valid",
    submitHandler:function(form){
    var config = {
    "url":"/admin/task/updateSetting",
    data:$("#task-count-setting").serialize(),
    "method":"POST"
    };
    var backendTool = new BackendTool(config);
    backendTool.ajaxRequest();
    }
});
</script>
#define main()
     <form class="form form-horizontal" id="task-count-setting">
        	<div class="row cl">
		        <label class="form-label col-xs-4 col-sm-3">实时统计开关：</label>
		        <div class="formControls col-xs-8 col-sm-9">
		        	<span class="select-box inline">
		        	<select id="countSwith" class="select" name="task_count_mode">
		        		<option value="0" #if(setting?? && setting.task_count_mode==0)selected#end>关闭</option>
		        		<option value="1" #if(setting?? && setting.task_count_mode==1)selected#end>开启</option>
		        	</select>
		        	</span>
		        </div>
		    </div>
		    
		    <div class="row cl">
		        <label class="form-label col-xs-4 col-sm-3">是否发送任务短信开关：</label>
		        <div class="formControls col-xs-8 col-sm-9">
		        	<span class="select-box inline">
		        	<select id="is_send_task_sms" class="select" name="is_send_task_sms">
		        		<option value="0" #if(setting?? && setting.is_send_task_sms==0)selected#end>关闭</option>
		        		<option value="1" #if(setting?? && setting.is_send_task_sms==1)selected#end>开启</option>
		        	</select>
		        	</span>
		        </div>
		    </div>
		    
		    <div class="row cl">
		    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
		        <input type="hidden" value="#(setting.id??'')" id="id" name="id">
		        <input class="btn btn-primary radius" type="submit" value="  保存  ">
		    </div>
		</div>
     </form>
#end